package com.wing.sell.model.response;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.sell.model.entity.AgentFollowRecord;
import java.math.BigDecimal;

/**
 * 销售代理商经销跟进记录VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class AgentFollowRecordVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 客户类型
     */
    private AgentFollowRecord.CustomerType customerType;

    /**
    * 客户类型描述
    */
    @TableField(exist = false)
    private String customerTypeDesc;

    public String getCustomerTypeDesc() {
        return customerType.getDesc();
    }

    /**
     * 客户跟进类型ID
     */
    private Long followTypeId;

    /**
     * 跟进客户ID
     */
    private Long selAgtId;

    /**
     * 跟进对象联系人ID
     */
    private Long contactsId;

    /**
     * 跟进方式ID
     */
    private Long followModelId;

    /**
     * 跟进结果描述
     */
    private String resultDesc;

    /**
     * 费用
     */
    private BigDecimal price;

    /**
     * 跟进结果类型ID
     */
    private Long followResultType;

    /**
     * 编号
     */
    private String code;

    /**
     * no
     */
    private Integer no;

    /**
     * day
     */
    private Integer day;

    /**
     * 状态
     */
    private AgentFollowRecord.Status status;

    /**
    * 状态描述
    */
    @TableField(exist = false)
    private String statusDesc;

    public String getStatusDesc() {
        return status.getDesc();
    }

    /**
     * 跟进时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime establishTime;

    /**
     * 审核人ID
     */
    private Long checkById;

    /**
     * 审核人名称
     */
    private String checkBy;

    /**
     * 审核时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime checkTime;

}
